Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install pip dependencies during the build #6534

Merged
merged 1 commit into from
Nov 22, 2021

Conversation

xoriole
Copy link
Contributor

@xoriole xoriole commented Nov 8, 2021

Fixes #6518

@drew2a
Copy link
Contributor

drew2a commented Nov 8, 2021

I guess the target branch should be release/7.11?

@xoriole xoriole changed the base branch from main to release/7.11 November 8, 2021 13:52
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@xoriole xoriole marked this pull request as ready for review November 22, 2021 11:23
@xoriole xoriole requested review from a team, kozlovsky and drew2a and removed request for a team November 22, 2021 11:23
@xoriole xoriole merged commit 83c829a into Tribler:release/7.11 Nov 22, 2021
@@ -19,6 +19,9 @@ rm -rf build/debian/tribler/usr/share/tribler

python3 build/update_version_from_git.py

# ----- Install pip dependencies before the build
python3 -m pip install --upgrade -r src/requirements.txt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue: we should stop the build procedure in case of pip install error.

The possible, but not tested solution:

Suggested change
python3 -m pip install --upgrade -r src/requirements.txt
python3 -m pip install --upgrade -r src/requirements.txt || exit 1

@@ -13,6 +13,9 @@ export RESOURCES=build/mac/resources
/bin/rm -rf dist

# ----- Build
# ----- Install pip dependencies before the build
python3 -m pip install --upgrade -r src/requirements.txt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue: we should stop the build procedure in case of pip install error.

The possible, but not tested solution:

Suggested change
python3 -m pip install --upgrade -r src/requirements.txt
python3 -m pip install --upgrade -r src/requirements.txt || exit 1

@@ -42,6 +42,9 @@ call build\win\clean.bat

REM ----- Build

REM ----- Install pip dependencies before the build
python3 -m pip install --upgrade -r src\requirements.txt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue: we should stop the build procedure in case of pip install error.

The possible, but not tested solution:

Suggested change
python3 -m pip install --upgrade -r src\requirements.txt
python3 -m pip install --upgrade -r src\requirements.txt || EXIT /B 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Build script should have a step for installing requrements.txt
3 participants